package patrol.mobile.com.mobilepatrol.activity.security.adapter;

import android.content.Context;

import com.dl7.recycler.adapter.BaseQuickAdapter;
import com.dl7.recycler.adapter.BaseViewHolder;

import patrol.mobile.com.mobilepatrol.R;
import patrol.mobile.com.mobilepatrol.bean.Ensure2Bean;
import patrol.mobile.com.mobilepatrol.bean.FestivalDuty2Bean;

/**
 * Created by fuzhen.li on 2018/11/13.
 */
public class WuZiAdapter extends BaseQuickAdapter<Ensure2Bean.AbkSupportBaseMaterialListBean> {
    public WuZiAdapter(Context context) {
        super(context);
    }

    @Override
    protected int attachLayoutRes() {
        return R.layout.item_wuzi;
    }

    @Override
    protected void convert(BaseViewHolder holder, Ensure2Bean.AbkSupportBaseMaterialListBean item) {
        holder.setText(R.id.tv_num, (holder.getLayoutPosition() + 1) + "");
        holder.setText(R.id.tv_materialName, item.getMaterialName());
        holder.setText(R.id.tv_unit, item.getUnit());
        holder.setText(R.id.tv_amount, item.getAmount());
    }
}
